<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>日历</title>
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/jquery-easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/jquery-easyui/themes/icon.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div class="easyui-calendar" style="width: 200px; height: 200px;"></div>
<div id="calendar"></div>
<script type="text/javascript">
$("#calendar").calendar({
  //日历控件宽度，默认值为180
  width: 240,
  //日历控件高度，默认值为180
  height: 240,
  //显示的周列表，默认值为['S','M','T','W','T','F','S']
  weeks: ['日','一','二','三','四','五','六'],
  //是否可以选择日历上的某一天，参数表示预验证的日期。返回false将阻止选择当前日期
  validator: function (date) {
    //如果当前日期不是周日
    if (date.getDay() != 0) {
      return true;
    } else {
      return false;
    }
  }
})
</script>
</body>
</html>